package com.ccc3gc.mysystem.bean;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class User extends BaseEntity {
    private Integer userId;
    @Excel(name = "用户名",width = 20)
    private String userName;
    @Excel(name = "用户昵称",width = 20)
    private String userNickname;
    @Excel(name = "性别", readConverterExp = "0=男,1=女")
    private Integer sex;
    @Excel(name = "手机号码")
    private String phone;
    @Excel(name = "用户邮箱")
    private String email;
    private String password;
    private String image;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
    private Date createTime;
}
